package day01;

import java.util.Collections;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;

public class Test1 {
    public static void main(String[] args) {
        List<String> list = new CopyOnWriteArrayList<>();
       Collections.addAll(list,"s","d","v","31","332");
        System.out.println(list.remove(0));
        System.out.println(list.remove("31"));
        System.out.println(list);
    }
}
